<script setup lang="ts">
import { ref } from "vue";
import { test } from "@/api/ImplementRegulation";
import { ElNotification } from "element-plus";
const value = ref("");
const submit = async () => {
  if (!value.value) return;
  await test({ begin: value.value });
  ElNotification({
    title: "系统提示",
    message: "设置成功",
    type: "success"
  });
};
</script>

<template>
  <div class="w-full">
    <div class="flex h-[32px]">
      <el-input v-model="value" class="mr-2" />
      <el-button type="primary" @click="submit">提交</el-button>
    </div>
  </div>
</template>
